package main

import (
	"context"
	"gluenet/modules/manager/server"
	"os"
	"os/signal"
	"syscall"
)

func main() {
	ctx, cancel := context.WithCancel(context.Background())
	sig := make(chan os.Signal, 1)
	signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
	go func() {
		<-sig
		cancel()
	}()
	server.Run(ctx)

	<-ctx.Done()

	//fmt.Printf("b：   %v", (*b).Getsss())
}
